#ifndef TRAPEZOIDMF_H
#define TRAPEZOIDMF_H

#include "graphicalmf.h"

class TrapezoidMF : public GraphicalMF
{
public:
    TrapezoidMF();
    TrapezoidMF(double newPoints[]);

    ~TrapezoidMF();

    void paint(QPainter* painter,
               const double &xShift,
               const double &xScale,
               const double &yShift,
               const double &yScale) const;

    /** Calculation functions */
    void calculateCentroid();
    void calculateProbability (const double& crispInput);
};

#endif // TRAPEZOIDMF_H
